package com.example.SBootDemo.Util;

import java.util.ArrayList;
import java.util.List;

import com.example.SBootDemo.model.function.user;

public class PageInfo<T> {
	
	//总页数
	private int countNum;
	//当前页
	private int currentNum;
	//每页条数
	private int pageSize=8;
	//动态列表头信息
	private List<String> titles =new ArrayList<>();
	//列表集合
	private List<T> ObjectList = new ArrayList<T>();
	
	
	public int getCountNum() {
		return countNum;
	}
	public void setCountNum(int countNum) {
		this.countNum = countNum;
	}
	public int getCurrentNum() {
		return currentNum;
	}
	public void setCurrentNum(int currentNum) {
		this.currentNum = currentNum;
	}
	public int getPageSize() {
		return pageSize;
	}
	public void setPageSize(int pageSize) {
		this.pageSize = pageSize;
	}
	public List<String> getTitles() {
		return titles;
	}
	public void setTitles(List<String> titles) {
		this.titles = titles;
	}
	public List<T> getObjectList() {
		return ObjectList;
	}
	public void setObjectList(List<T> objectList) {
		ObjectList = objectList;
	}
	public PageInfo(int countNum, int currentNum, int pageSize, List<String> titles, List<T> objectList) {
		super();
		this.countNum = countNum;
		this.currentNum = currentNum;
		this.pageSize = pageSize;
		this.titles = titles;
		ObjectList = objectList;
	}
	
	
	
	
	
	
	
	
	
	
	
}
